<?

require(dirname(__FILE__) . '/../bootstrap.php');

//echo 'bf::$inet->server_address() ==> ';
//var_dump(bf::$inet->server_address());
//var_dump(bf_path::concat('/var/mail/', '/root'));
//var_dump(bf_path::concat('c:\tmp', '\application\data'));
//var_dump(dirname(__FILE__));
//var_dump(bf_path::expand(dirname(__FILE__)));

//$db = new bf_db_pdo_sqlite3(array('database' => 'test.db', 'log' => 'test.db.log', 'logging' => 2));
//var_dump($db->query_column("SELECT datetime('now')"));
//var_dump($db->query("create table if not exist loc (a integer, b text)"));
//var_dump($db->query('insert into loc (a, b) values ($1, $2)', array(10, 'abc')));
//var_dump($db->query('insert into loc (a, b) values ($1, $2)', array(20, 'def')));
//var_dump($db->query('insert into loc (a, b) values ($1, $2)', array(30, "Hello 'World'!")));
//var_dump($db->query_all_obj('select * from loc'));

//var_dump(bf_path::ls(dirname(__FILE__) . '/../', dirname(__FILE__) . '/../'));

?>